<template>
  <el-dialog title="用户编辑"
             :visible="visible"
             @close="close"
             :close-on-click-modal="false">
    <RoleList ref="data_table"></RoleList>
    <span slot="footer" class="dialog-footer">
    <el-button @click="visible = false">取 消</el-button>
    <el-button type="primary" @click="onselected">确 定</el-button>
  </span>
  </el-dialog>
</template>

<script>
import RoleList from "./system/authorization/role/RoleSelector";

export default {
  name: "Test",
  components: {RoleList},
  props: {
    data: {
      type: Object, default: function () {
        return {};
      }
    },
    visible: {
      type: Boolean,
      default: true,
      required: false
    }
  },
  data() {
    return {
      show: true
    };
  },
  methods: {
    onselected() {
      console.log(this.$refs.data_table.selection)
    },
    close() {
      this.$emit("close");
    }
  }
}
</script>

<style scoped>

</style>
